#ifndef FEATURESDIALOG_H
#define FEATURESDIALOG_H

#include <QDialog>
#include "imagemanager.h"

namespace Ui {
    class FeaturesDialog;
}

class FeaturesDialog : public QDialog {
    Q_OBJECT
public:
	FeaturesDialog(QWidget *parent = 0);
    ~FeaturesDialog();

	static const int AutopicDisable = 0;
	static const int AutopicFromFs = 1;
	static const int AutopicFromDb = 2;
	static const int AutopicFromDbRandom = 3;

	static const int WatermarkDisable = 0;
	static const int WatermarkWhitespace = 1;
	static const int WatermarkText = 2;
	static const int WatermarkImage = 3;

public slots:
	virtual void accept();
	void selectPicture();
	void randomPictureToggled(bool b);
	void pictureSelected(const QString& filename);

protected:
	void changeEvent(QEvent *e);
	bool eventFilter(QObject *obj, QEvent *event);

private:
	void updateStatus();

    Ui::FeaturesDialog *ui;
	QString m_pictureFilename;
	int m_pictureId;
	ImageManager* m_imageManager;
};

#endif // FEATURESDIALOG_H
